# -*- coding: utf-8 -*-
from plate import Plate
import time

if __name__ == '__main__':
	
	beta, b = 1.,100.
	a = b*beta
	gamma = 0.0
	M,N = 10, 10
	
	p = Plate()
	p.M,p.N = M,N
	#~ p.gamma = gamma
	p.BC = 2
	#~ p.ds = 0
	
	t0 = time.clock()
	p.buckling()
	t1 = time.clock()
	K,A = p.K,p.A
	
	print '''
	=========EBARTP v1.0.1==========
	Plate Property: beta = %.2f, gamma = %.2f
	Numbers of Series: M*N = %d*%d
	---------------------------------------------------
	CPU Time: %.3f s
	Buckling Factor:
	'''%(beta,gamma,M,N,(t1-t0))
	i = 1
	for k in K:
		print '		Mode %d: k = %.4f'%(i,k)
		i+=1
	print '	=========EBARTP v1.0.1=========='